{#if $T != null && $T.length > 0}
<div class="goods_evaluate_button">
	<button data-href="0" class='ui-btn ui-mini ui-btn-inline {#if $P.is_image == null || $P.is_image == 0}button_select{#else}button_unselect{#/if}' onclick="image_comment_click(0)">全部</button>
	<button data-href="1" class='ui-btn ui-mini ui-btn-inline {#if $P.is_image == null || $P.is_image == 0}button_unselect{#else}button_select{#/if}' onclick="image_comment_click(1)">有图</button>
</div>
{#/if}

 {#foreach $T as record}

<div class="evaluate">
	<div>
		<span>{$T.record.user_name}</span>
		<span class="evaluate_date">{$T.record.create_date}</span>
	</div>
	<div>{$T.record.context}</div>
	{#if $T.record.imageArray.length > 0}
	<ul id="products_list" style="-webkit-overflow-scrolling : auto;overflow-y:hidden;white-space: nowrap;margin:0.2rem 0 0 0;padding:0 0.2rem;">
		{#foreach $T.record.imageArray as r}
			<li class="goods_list">
				<img src="{$T.r}" height="60px" onclick="slider_view('{$T.record.image}','{$T.r}')">
			</li>
		{#/for}
	</ul>
	{#else}
	{#/if}
	
	<div class="goods_type">颜色分类: {$T.record.sku_name}</div>
</div>
<hr class="splitLine">
{#/for}

{#if ($T != null && $T.length > 0)}
	{#if $P.lastPage != true}
		<div class="loadmore" onclick="loadmore()"><span class="loading">加载更多评论</span></div>
	{#else}
		<div class="loadmore"><span class="loading">没有评论了</span></div>
	{#/if}
{#else}
	<div class="loadmore"><span class="loading">暂时没有评论</span></div>
{#/if}
